package stmo.顺序表;

public class SequenceListTest {


    /**
     *  顺序表测试类
     */

    public static void main(String[] args) {

//        test1();

        test2();

    }

    private static void test1() {

        SequenceList<String> sequenceList = new SequenceList(10);
        sequenceList.insert("撒大大撒");
        sequenceList.insert("攻打大宋");
        sequenceList.insert("打撒十大");
        sequenceList.insert("卢卡斯你");
        sequenceList.insert(2,"5");

        for (Object s : sequenceList) {
            System.out.println(s);
        }

    }


    private static void test2() {

        SequenceList<String> sequenceList = new SequenceList(3);
        sequenceList.insert("撒大大撒");
        sequenceList.insert("攻打大宋");
        sequenceList.insert("打撒十大");
        sequenceList.insert("卢卡斯你");
        sequenceList.insert(2,"5");

        for (Object s : sequenceList) {
            System.out.println(s);
        }

    }


}
